package chixing.day12.class1;

public class SavingAccount extends Account {
    private String sa;

    // 构造函数：初始化对象
    public SavingAccount(){
        // super();  默认省略
        System.out.println("SavingAccount 无参构造函数....");
    }

    @Override
    public double deposit(double money) {
        return 0;
    }

    @Override
    public double withdraw(double money) {
        return 0;
    }

    //子类的构造函数，默认调用父类的无参构造函数 ， 也可以显式调用父类的其他 有参构造函数
    public SavingAccount(String accNo,String accName,String accPersonId,long accTelno,double accBalance,String sa){
        super(accNo,accName,accPersonId,accTelno,accBalance);
        this.sa = sa;
    }

    public SavingAccount(String accNo,String accName){
        // super();  默认省略
        int a = 10;
        int b =20;
    }


    public String getSa() {
        return sa;
    }

    public void setSa(String sa) {
        this.sa = sa;
    }


}
